{template 'common/header'}
<div class="main">
    <ul class="nav nav-tabs">
        <li><a href="{php echo $this->createWebUrl('manage');}">返回活动列表</a></li>
        <li class="active"><a href="{php echo $this->createWebUrl('managed',array('rid'=>$row['rid']))}">参与用户</a></li>
        <li><a href="{php echo $this->createWebUrl('expiry',array('rid'=>$row['rid']))}">领取管理</a></li>
    </ul>

    <div class="panel panel-info">
        <div class="panel-heading">筛选</div>
        <div class="panel-body">
            <form action="./index.php" method="get" class="form-horizontal" role="form">
                <input type="hidden" name="c" value="site" />
                <input type="hidden" name="a" value="entry" />
                <input type="hidden" name="m" value="eso_runman" />
                <input type="hidden" name="do" value="managed" />
                <input type="hidden" name="rid" value="{$_GPC['rid']}" />
                <div class="form-group">
                    <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">关键字</label>
                    <div class="col-xs-12 col-sm-8 col-lg-9">
                        <input class="form-control" name="keywords" id="" type="text" value="{$_GPC['keywords']}">
                    </div>
                    <div class=" col-xs-12 col-sm-2 col-lg-2">
                        <button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
                    </div>
                </div>
                <div class="form-group">
                </div>
            </form>
        </div>

    </div>
    <div class="panel panel-default">
        <div class="panel-body table-responsive">
            <table class="table table-hover">
                <thead class="navbar-inner">
                <tr>
                    <th style="width:70px;">ID</th>
                    <th>奖品</th>
                    <th>加入时间</th>
                    <th>剩余抽奖机会</th>
                    <th style="width:100px;">操作</th>
                </tr>
                </thead>
                <tbody>
                {loop $lists $iow}
                <tr>
                    <td>{$iow['id']} </td>
                    <td>{$iow['title']} </td>
                    <td>{php echo date('Y-m-d H:i:s',$iow['indate'])}</td>
                    <td>{php echo intval($iow['val'])} </td>
                    <td>
                        <div class="btn-group pull-right">
                            <a class="btn btn-default btn-sm" href="{php echo $this->createWebUrl('managed',array('type'=>'del','id'=>$iow['id'],'rid'=>$row['rid']))}" title="删除"><i class="fa fa-del"></i> 删除</a>
                        </div>
                    </td>
                </tr>
                {/loop}
                {if !$lists}
                <tr>
                    <td colspan="5" style="text-align:center">
                        没有任何参与的会员。
                    </td>
                </tr>
                {/if}
                </tbody>
            </table>
        </div>
    </div>
    {$pager}
</div>


{template 'common/footer'}